class Announcement < ActiveRecord::Base
  belongs_to :member

  validates_presence_of :message, :member_id
  
  def self.find_announcements
    find_all_by_admin true, :order => "created_at DESC", :limit => 15
  end
  
  def self.find_shoutouts
    find_all_by_admin false, :order => "created_at DESC", :limit => 15
  end
end
